﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Movie.aspx.cs" Inherits="Movie" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Label ID="lblTitle1" runat="server" Font-Size="16pt" ForeColor="#0099FF" 
                Text="Label"></asp:Label>
            <br />
    <br />
            <table align="center" style="clear: both;">
                <tr>
                    <td>
                        &nbsp;
                        <asp:DataList ID="dtlShow" runat="server" RepeatColumns="3" Width="610px">
                            <ItemTemplate>
                                <table style="width:101%;">
                                    <tr>
                                        <td colspan="2">
                                            <asp:ImageButton ID="ImageButton1" runat="server" BorderStyle="Ridge" 
                                                BorderWidth="2px" CommandArgument='<%# Eval("MovieID") %>' Height="193px" 
                                                ImageUrl='<%# Eval("Avata","~/images/Movie/{0}") %>' onclick="ImageButton1_Click" 
                                                Width="169px" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style="height: 26px">
                                            <asp:Label ID="Label4" runat="server" Text='<%# Eval("MovieName") %>' 
                                                Font-Bold="False" Font-Size="10pt" ForeColor="#FF3300"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 35px">
                                            <asp:Label ID="lblReleased" runat="server" Font-Bold="True" Text="Released:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblStart" runat="server" 
                                                Text='<%# Eval("ReleasedDay","Start date: {0:dd/MM/yyyy}") %>'></asp:Label>
                                            &nbsp;<asp:Label ID="lblEnd" runat="server" 
                                                Text='<%# Eval("CloseDay","End date: {0:dd/MM/yyyy}") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 35px">
                                            <asp:LinkButton ID="LinkButton1" runat="server" 
                                                CommandArgument='<%# Eval("MovieID") %>' onclick="LinkButton1_Click">Detail</asp:LinkButton>
                                        </td>
                                        <td>
                                            <asp:LinkButton ID="lbtnBookingTicket" runat="server" 
                                                CommandArgument='<%# Eval("MovieID") %>' onclick="lbtnBookingTicket_Click">Booking Ticket</asp:LinkButton>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:DataList>
                        <br />
                        <asp:Panel ID="pnPhanTrang" runat="server" Height="35px" Width="611px">
                            <asp:LinkButton ID="lbtnFirst" runat="server" onclick="lbtnFirst_Click">First</asp:LinkButton>
                            &nbsp;&nbsp;
                            <asp:LinkButton ID="lbtnPrevious" runat="server" onclick="lbtnPrevious_Click">Previous</asp:LinkButton>
                            &nbsp;&nbsp;<asp:TextBox ID="txtShow" runat="server" BorderColor="#666666" 
                                BorderStyle="Dotted" Width="42px"></asp:TextBox>
                            &nbsp;&nbsp;<asp:LinkButton ID="lbtnNext" runat="server" onclick="lbtnNext_Click">Next</asp:LinkButton>
                            &nbsp; &nbsp;<asp:LinkButton ID="lbtnLast" runat="server" onclick="lbtnLast_Click">Last</asp:LinkButton>
                        </asp:Panel>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
    <asp:Label ID="lblTitle" runat="server" Text="Movies Menu"></asp:Label>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <ul class="sb_menu">
                <li>
                    <asp:LinkButton ID="lbtnReleased" runat="server" ForeColor="#33CCFF" 
                        onclick="lbtnReleased_Click1" >Released</asp:LinkButton>
                </li>
                <li>
                    <asp:LinkButton ID="lbtnReleasedYet" runat="server" ForeColor="#00CCFF" 
                        onclick="lbtnReleasedYet_Click1" >Released Yet</asp:LinkButton>
                </li>
            </ul>
            <div>
                <table style="width:100%;">
                    <tr>
                        <td style="width: 62px">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="3" style="border-style: ridge; border-width: 1px; height: 53px;">
                            <asp:Label ID="lblSearch" runat="server" Font-Bold="False" Font-Size="18pt" 
                                Text="Search"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 62px; height: 40px">
                            <asp:Label ID="lblMovieName" runat="server" Text="Movie Name:"></asp:Label>
                        </td>
                        <td colspan="2" style="height: 40px">
                            <asp:DropDownList ID="ddlMoviName" runat="server" Height="26px" Width="189px" 
                                AutoPostBack="True" onselectedindexchanged="ddlMoviName_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 62px; height: 43px;">
                            <asp:Label ID="lblDateMovie" runat="server" Text="Date Movie:"></asp:Label>
                        </td>
                        <td colspan="2" style="height: 43px">
                            <asp:TextBox ID="txtDate" runat="server" Height="19px" Width="153px" 
                                BorderStyle="Outset" BorderWidth="1px"></asp:TextBox>
                            <asp:CalendarExtender ID="txtDate_CalendarExtender" runat="server" 
                                DaysModeTitleFormat="dd-MM-yyyy" PopupButtonID="imgbtnDate" 
                                TargetControlID="txtDate" TodaysDateFormat="dd MMMM , yyyy">
                            </asp:CalendarExtender>
                            <asp:ImageButton ID="imgbtnDate" runat="server" Height="16px" 
                                ImageUrl="~/images/Image/Calendar_scheduleHS.png" 
                                style="margin-left: 7px; margin-top: 0px" Width="23px" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 62px; height: 28px;">
                            </td>
                        <td colspan="2" style="height: 28px">
                            <asp:Button ID="btnSearch" runat="server" Text="Search by date" 
                                BorderStyle="Inset" onclick="btnSearch_Click" BorderWidth="1px" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <asp:Label ID="lblError" runat="server" ForeColor="Red" Text="Label" 
                                Visible="False"></asp:Label>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

